import { get, post } from '../../utils/request'
// 题库列表
const getDatabaseList = (params: any) => {
    return get('database/list', params)
}
// 题库删除
const getDelete = (id: number) => {
    return get('database/delete', { id })
}
// 题库批量删除
const postDeletes = (ids: any) => {
    return post('database/deleteall', { ids: ids })
}
// 老师列表
const getTeacherList = (paramsTeacher: any) => {
    return get('teacher/list', paramsTeacher)
}
// 部门列表
const getDepartmentList = (params: any) => {
    return get('department/list', params)
}
// 题库添加
const postAdd = (params: any) => {
    return post('database/add', params)
}
// 试题列表
const getDatabasequestionList = (params: any) => {
    return get('databasequestion/list', params)
}
// 试题批量删除
const databasequestionDels = (ids: Array<number>) => {
    return post('databasequestion/deleteall', { ids })
}
// 试题删除
const databasequestionDel = (id: number) => {
    return get('databasequestion/delete', { id })
}
// 试题添加
const postDatabasequestionAdd = (params: any) => {
    return post('databasequestion/add', params)
}
// 试题批量添加
const postDatabasequestionAddlist = (params: any) => {
    return post('databasequestion/addlist', params)
}
export {
    getDatabaseList,
    getDelete,
    postDeletes,
    getTeacherList,
    getDepartmentList,
    postAdd,
    getDatabasequestionList,
    databasequestionDels,
    databasequestionDel,
    postDatabasequestionAdd,
    postDatabasequestionAddlist
}